import { getRoleList, getRoleMenu, addRole, getEditInfo, updateRole, delRole } from '@/services/RoleList'

export default () => {
  const GetRoleList = (params: any) => {
    return getRoleList(params)
  }
  const GetRoleMenu = (params: any) => {
    return getRoleMenu(params)
  }
  const AddRole = (params: any) => {
    return addRole(params)
  }
  const GetEditInfo = (params: any) => {
    return getEditInfo(params)
  }
  const UpdateRole = (params: any) => {
    return updateRole(params)
  }
  const DelRole = (params: any) => {
    return delRole(params)
  }

  return {
    GetRoleList,
    GetRoleMenu,
    AddRole,
    GetEditInfo,
    UpdateRole,
    DelRole
  }
}
